home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / swbprog / form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  1999-04-19  |  2.7 KB  |  89 lines

  1. VERSION 5.00
  2. Object = "{571D9D02-EE3C-11D2-BC70-004005448951}#1.2#0"; "SWBPROG.OCX"
  3. Begin VB.Form Form1 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Progress Bar Sample"
  6.    ClientHeight    =   2610
  7.    ClientLeft      =   45
  8.    ClientTop       =   330
  9.    ClientWidth     =   3870
  10.    Icon            =   "Form1.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   2610
  15.    ScaleWidth      =   3870
  16.    ShowInTaskbar   =   0   'False
  17.    StartUpPosition =   2  'CenterScreen
  18.    Begin VB.Frame Frame1 
  19.       Caption         =   "Orientation"
  20.       Height          =   1065
  21.       Left            =   1980
  22.       TabIndex        =   1
  23.       Top             =   1350
  24.       Width           =   1665
  25.       Begin VB.OptionButton optDirection 
  26.          Caption         =   "&Horizontal"
  27.          Height          =   315
  28.          Index           =   0
  29.          Left            =   270
  30.          TabIndex        =   3
  31.          Top             =   300
  32.          Width           =   1215
  33.       End
  34.       Begin VB.OptionButton optDirection 
  35.          Caption         =   "&Vertical"
  36.          Height          =   315
  37.          Index           =   1
  38.          Left            =   270
  39.          TabIndex        =   2
  40.          Top             =   630
  41.          Width           =   1065
  42.       End
  43.    End
  44.    Begin VB.Timer Timer1 
  45.       Interval        =   250
  46.       Left            =   3210
  47.       Top             =   120
  48.    End
  49.    Begin SWBProgressBar.SWBProgress SWBProgress1 
  50.       Height          =   1785
  51.       Left            =   540
  52.       TabIndex        =   0
  53.       Top             =   450
  54.       Width           =   405
  55.       _ExtentX        =   714
  56.       _ExtentY        =   3149
  57.       Percent         =   50
  58.       Orientation     =   2
  59.       BarStyle        =   2
  60.    End
  61. Attribute VB_Name = "Form1"
  62. Attribute VB_GlobalNameSpace = False
  63. Attribute VB_Creatable = False
  64. Attribute VB_PredeclaredId = True
  65. Attribute VB_Exposed = False
  66. Private Sub Form_Load()
  67.     optDirection(0).Value = True
  68.     SWBProgress1.Percent = 0
  69. End Sub
  70. Private Sub optDirection_Click(Index As Integer)
  71.     If (Index = 0) Then
  72.         SWBProgress1.Orientation = pbHorizontalBar
  73.         SWBProgress1.Height = 285
  74.         SWBProgress1.Width = 3000
  75.         SWBProgress1.Top = 800
  76.         SWBProgress1.Left = 500
  77.     Else
  78.         SWBProgress1.Orientation = pbVerticalBar
  79.         SWBProgress1.Height = 2200
  80.         SWBProgress1.Width = 500
  81.         SWBProgress1.Top = 200
  82.         SWBProgress1.Left = 500
  83.     End If
  84. End Sub
  85. Private Sub Timer1_Timer()
  86.     If (SWBProgress1.Percent >= 100) Then SWBProgress1.Percent = 0
  87.     SWBProgress1.Percent = SWBProgress1.Percent + 1
  88. End Sub
  89.